Edit form with api data in react